home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / cdbind01.zoo / metados.c < prev    next >
C/C++ Source or Header  |  1994-05-16  |  2KB  |  86 lines

  1. /*
  2.     Bindings for MetaDOS functions, requires PureC TOS library
  3.     
  4.     Copyright (c) Julian F. Reschke (jr@ms.maus.de), 16. Mai 1994
  5.     Free distribution and usage allowed as long as the file remains 
  6.     unchanged.
  7.     
  8.     See MetaDOS developer manuals for a description of the data structures.
  9. */
  10.  
  11. #include <metados.h>
  12. #include <tos.h>
  13.  
  14. void
  15. Metainit (META_INFO_1 *buffer)
  16. {
  17.     xbios (0x30, buffer);
  18. }
  19.  
  20. long
  21. Metaopen (short drive, META_DRVINFO *buffer)
  22. {
  23.     return xbios (0x31, drive, buffer);
  24. }
  25.  
  26. long
  27. Metaclose (short drive)
  28. {
  29.     return xbios (0x32, drive);
  30. }
  31.  
  32. long
  33. Metaread (short drive, void *buffer, long blockno, short blks)
  34. {
  35.     return xbios (0x33, drive, buffer, blockno, blks);
  36. }
  37.  
  38. long
  39. Metawrite (short drive, void *buffer, long blockno, short blks)
  40. {
  41.     return xbios (0x34, drive, buffer, blockno, blks);
  42. }
  43.  
  44. long
  45. Metastatus (short drive, void *buffer)
  46. {
  47.     return xbios (0x36, drive, buffer);
  48. }
  49.  
  50. long
  51. Metaioctl (short drive, long magic, short opcode, void *buffer)
  52. {
  53.     return xbios (0x37, drive, magic, opcode, buffer);
  54. }
  55.  
  56. long
  57. Metastartaudio (short drive, short flag, unsigned char *bytearray)
  58. {
  59.     return xbios (0x3b, drive, flag, bytearray);
  60. }
  61.  
  62. long
  63. Metastopaudio (short drive)
  64. {
  65.     return xbios (0x3c, drive);
  66. }
  67.  
  68. long
  69. Metasetsongtime (short drive, short repeat, long starttime, long endtime)
  70. {
  71.     return xbios (0x3d, drive, repeat, starttime, endtime);
  72. }
  73.  
  74. long
  75. Metagettoc (short drive, short flag, CD_TOC_ENTRY *buffer)
  76. {
  77.     return xbios (0x3e, drive, flag, buffer);
  78. }
  79.  
  80. long
  81. Metadiscinfo (short drive, CD_DISC_INFO *p)
  82. {
  83.     return xbios (0x3f, drive, p);
  84. }
  85.  
  86.